package com.hgd.security.evp.biz.rest;

import lombok.extern.log4j.Log4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author By 尚
 * @date 2019/2/28 0:20
 */
@Controller
@Log4j
public class ViewController {

    @GetMapping("/home")
    public ModelAndView indexPage() {
        log.info("/index");
        return new ModelAndView("index");
    }

    @GetMapping("/systemManage")
    public ModelAndView systemSetting() {
        return new ModelAndView("pages/systemManage");
    }

    @GetMapping("/userManage")
    public ModelAndView userSetting() {
        return new ModelAndView("pages/userManage");
    }

    @GetMapping("/menuManage")
    public ModelAndView menuManage() {
        return new ModelAndView("pages/menuManage");
    }

    @GetMapping("/login")
    public ModelAndView login() {
        return new ModelAndView("pages/login");
    }

    @GetMapping("/authorityManage")
    public ModelAndView authorityManage() {
        return new ModelAndView("pages/authorityManage");
    }

    @GetMapping("/deptManage")
    public ModelAndView deptManage(){
        return new ModelAndView("pages/deptManage");
    }

    @GetMapping("/dictManage")
    public ModelAndView dictManage(){
        return new ModelAndView("pages/dictManage");
    }

    @GetMapping("/personalPlat")
    public  ModelAndView personalPlat(){
        return new ModelAndView("pages/personalPlat");
    }

    @GetMapping("/websocket")
    public ModelAndView websocket(){
        return new ModelAndView("pages/websocket");
    }
}
